home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group01b.txt
/
000084_icon-group-sender_Thu Jul 5 08:57:06 2001.msg
< prev
next >
Wrap
Internet Message Format
|
2002-01-03
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id f65FttA19157
for icon-group-addresses; Thu, 5 Jul 2001 08:55:55 -0700 (MST)
Message-Id: <200107051555.f65FttA19157@baskerville.CS.Arizona.EDU>
Date: Tue, 03 Jul 2001 17:37:42 -0600
From: "Cheyenne Wills" <cheyenne_wills@qwest.net>
To: icon-group@cs.arizona.edu
Cc: "cactuspad53" <olfaceless@netzero.net>
X-Accept-Language: en
Subject: Re: Help
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 724
What your problem is, is that PRN is the name of a file. PRN: (or
LPT1:) is the
MS-DOS name of the printer.
So..
procedure main()
p := open( "PRN:", "w")
write( p, "Hello")
end
In fact MS-DOS has a whole bunch of device driver names that can be
accessed via
the dev: format.
Cheyenne
cactuspad53 wrote:
>
> I can't get icon to print my source code or to print anything to my =
> printer.
> I have a Compaq Presario, AMD Athlon 500 processor connected to an HP =
> 712C printer.
> Even the foloiwng code does nothing:
> procedure main( )
> p :=3D open( "PRN", "w")
> write( p, "hello" )
> close(p)
> end
>
> Is there a setup required to get icon to recognize the printer?
> Thank you,
> Jim De Leo